package vip.xiaonuo.smzq.modular.kcl.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import vip.xiaonuo.smzq.modular.kcl.entity.Zl;
import vip.xiaonuo.smzq.modular.kcl.mapper.ZlMapper;
import vip.xiaonuo.smzq.modular.kcl.service.IZlService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.xiaonuo.common.page.CommonPageRequest;

import javax.annotation.Resource;
import java.util.List;

/**
 * 矿山质量 服务实现类
 *
 * @author eomer
 * @since 2024-02-22
 */
@Service
public class ZlServiceImpl extends ServiceImpl<ZlMapper, Zl> implements IZlService {

    @Resource
    private ZlMapper zlMapper;

    @Override
    public Page<Zl> page(Zl zl) {
        QueryWrapper<Zl> queryWrapper = new QueryWrapper<>();
        return this.page(CommonPageRequest.defaultPage(), queryWrapper);
    }

    @Override
    public List<Zl> selectList() {
        return zlMapper.selectList(new QueryWrapper<>());
    }

    @Override
    public List<Zl> selectOldList(QueryWrapper<Zl> queryWrapperZl) {
        return zlMapper.selectList(queryWrapperZl);
    }
}
